furny.ga.util
Class CollectionUtils

java.lang.Object
  extended by furny.ga.util.CollectionUtils

public final class CollectionUtils
extends java.lang.Object

Utility class for handling collections.

Since:
11.08.2012
Author:
Stephan Dreyer

Constructor Summary
private CollectionUtils()
          Instantiation is not allowed.
 
Method Summary
static
<T> void
randomOrder(java.util.List<T> list)
          Puts a list into a random order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

private CollectionUtils()
Instantiation is not allowed.

Since:
11.08.2012
Method Detail

randomOrder

public static <T> void randomOrder(java.util.List<T> list)
Puts a list into a random order. Each element from 0 to n is exchanged by a random element.

Type Parameters:
T - Generic type argument for the collections elements.
Parameters:
list - The list to put into random order.
Since:
11.08.2012